package dao;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Examination entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "examination", catalog = "assistedlearning")
public class Examination implements java.io.Serializable {

    // Fields

    private Integer examinationid;
    private String courseid;
    private String chapterid;
    private Integer knowledgeid;
    private Integer type;
    private String question;
    private String answer;
    private String analysis;
    private String questionpath;
    private String answerpath;
    private String analysispath;

    // Constructors

    /** default constructor */
    public Examination() {
    }

    /** minimal constructor */
    public Examination(String courseid, String chapterid, Integer knowledgeid,
	    Integer type, String question, String answer) {
	this.courseid = courseid;
	this.chapterid = chapterid;
	this.knowledgeid = knowledgeid;
	this.type = type;
	this.question = question;
	this.answer = answer;
    }

    /** full constructor */
    public Examination(String courseid, String chapterid, Integer knowledgeid,
	    Integer type, String question, String answer, String analysis) {
	this.courseid = courseid;
	this.chapterid = chapterid;
	this.knowledgeid = knowledgeid;
	this.type = type;
	this.question = question;
	this.answer = answer;
	this.analysis = analysis;
    }

    // Property accessors
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "examinationid", unique = true, nullable = false)
    public Integer getExaminationid() {
	return this.examinationid;
    }

    public void setExaminationid(Integer examinationid) {
	this.examinationid = examinationid;
    }

    @Column(name = "courseid", nullable = false, length = 4)
    public String getCourseid() {
	return this.courseid;
    }

    public void setCourseid(String courseid) {
	this.courseid = courseid;
    }

    @Column(name = "chapterid", nullable = false, length = 6)
    public String getChapterid() {
	return this.chapterid;
    }

    public void setChapterid(String chapterid) {
	this.chapterid = chapterid;
    }

    @Column(name = "knowledgeid", nullable = false)
    public Integer getKnowledgeid() {
	return this.knowledgeid;
    }

    public void setKnowledgeid(Integer knowledgeid) {
	this.knowledgeid = knowledgeid;
    }

    @Column(name = "type", nullable = false)
    public Integer getType() {
	return this.type;
    }

    public void setType(Integer type) {
	this.type = type;
    }

    @Column(name = "question", nullable = false, length = 512)
    public String getQuestion() {
	return this.question;
    }

    public void setQuestion(String question) {
	this.question = question;
    }

    @Column(name = "answer", nullable = false, length = 300)
    public String getAnswer() {
	return this.answer;
    }

    public void setAnswer(String answer) {
	this.answer = answer;
    }

    @Column(name = "analysis", length = 256)
    public String getAnalysis() {
	return this.analysis;
    }

    public void setAnalysis(String analysis) {
	this.analysis = analysis;
    }
    
    @Column(name = "questionpath", length = 50)
    public String getQuestionpath() {
        return questionpath;
    }

    public void setQuestionpath(String questionpath) {
        this.questionpath = questionpath;
    }

    @Column(name = "answerpath", length = 50)
    public String getAnswerpath() {
        return answerpath;
    }

    public void setAnswerpath(String answerpath) {
        this.answerpath = answerpath;
    }

    @Column(name = "analysispath", length = 50)
    public String getAnalysispath() {
        return analysispath;
    }

    public void setAnalysispath(String analysispath) {
        this.analysispath = analysispath;
    }
    

}